package org.hxyjs.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.hxyjs.entity.NewsRecord;
import org.hxyjs.entity.NewsRecordExample;

public interface NewsRecordMapper {
    long countByExample(NewsRecordExample example);

    int deleteByExample(NewsRecordExample example);

    int deleteByPrimaryKey(String newno);

    int insert(NewsRecord record);

    int insertSelective(NewsRecord record);

    String getMaxNewno();

    List<NewsRecord> getNewsRecordByPage(Map<String, Object> map);

    List<NewsRecord> selectByExample(NewsRecordExample example);

    NewsRecord selectByPrimaryKey(String newno);

    int updateByExampleSelective(@Param("record") NewsRecord record, @Param("example") NewsRecordExample example);

    int updateByExample(@Param("record") NewsRecord record, @Param("example") NewsRecordExample example);

    int updateByPrimaryKeySelective(NewsRecord record);

    int updateByPrimaryKey(NewsRecord record);
}